<?php

/**
 * 系统首页
 *
 * @author jiang
 */

namespace Kj\Admin\Controller;

use View, Scstore, Input, Redirect, Config, Auth;
use Kj\Admin\Controller\AdminController;
use Kj\Admin\Libraries\Acl;
use Kj\Admin\Libraries\Tree;

class IndexController extends AdminController
{
    /**
     * 显示首页
     */
    public function index()
    {
        $username = Auth::user()->realname;
        return View::make('admin/index')->with(compact('username'));
    }

    /**
     * 显示首页
     */
    public function dialog()
    {
        //测试实验页面
        return View::make('admin/hello');
    }

    /**
     * 显示首页
     */
    public function dashboard2()
    {
        return '';
    }

}